Residual term for alternating series